package com.itcm.manage.service.impl;

import com.itcm.manage.entity.SysPermission;
import com.itcm.manage.mapper.SysPermissionMapper;
import com.itcm.manage.service.SysPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 后台用户权限表 服务实现类
 * </p>
 *
 * @author sky
 * @since 2020-06-17
 */
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements SysPermissionService {
    @Override
    public List<SysPermission> getPermissionsByUserId(Long userId) {
        return this.baseMapper.getPermissionsByUserId(userId);
    }
}
